package com.eight.cloud.springmvc.utils.thread;

import com.alibaba.ttl.TtlRunnable;

/**
 * 多线程上下文工具
 *
 * @ClassName: ThreadContextUtil
 * @Author: TXC
 * @Date: 2025-08-05 17:31
 **/
public class ThreadContextUtil {
    /**
     * 创建可传递线程变量的Runnable
     * @param runnable 原始Runnable
     * @return 可传递线程变量的Runnable
     */
    public static Runnable retouchRunnable(final Runnable runnable) {
        return TtlRunnable.get(runnable);
    }
}
